<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

</body>
<script>
    // Promise.reject() 不管传递的是什么，结果都是失败的
    const p2=Promise.reject('ok')
    const p = Promise.reject(new Promise((resolve, reject) => {
        resolve('ok')
    }))
    console.log(p);
    console.log(p2);
   
</script>

</html>